//
//  HallCollectionViewCell.m
//  K8彩票
//
//  Created by zhoubo on 2017/6/7.
//  Copyright © 2017年 zhoubo. All rights reserved.
//

#import "HallCollectionViewCell.h"

#import "LotteryView2.h"

@interface HallCollectionViewCell ()
@property(nonatomic,strong)LotteryView2 *view;

@end

@implementation HallCollectionViewCell

-(instancetype)initWithFrame:(CGRect)frame
{
    if (self = [super initWithFrame:frame]) {
        
        LotteryView2* view = [[NSBundle mainBundle] loadNibNamed:@"LotteryView2" owner:nil options:nil].lastObject;
        
        // +1  ®®®®®®®®®®®®®®®®®
        view.frame = CGRectMake(0, 0, self.bounds.size.width , self.frame.size.height);
        self.view = view;
        

        [self.contentView addSubview:view];
        
    }
    return self;
}

-(void)layoutSubviews
{
    //®®®®®®®®®
//    self.view.model = self.model;
}

-(void)setModel:(LotteryModel *)model
{
    _model = model;
    self.view.model = model;
    
}



-(void)setBackgroundColor:(UIColor*)color
{
    self.view.backgroundColor = color;
}

@end
